package com.fruit.service.Category.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.fruit.mapper.category.CategoryMapper;
import com.fruit.service.category.CategoryManager;
@Service("CategoryService")
public class CategoryService implements CategoryManager {

	@Autowired
	private CategoryMapper categoryMapper;
	@Override
	public List<Map<String, Object>> getPopularList(Map<String, Object> page) {
		// TODO Auto-generated method stub
		return categoryMapper.getPopularList(page);
	}

	@Override
	public List<Map<String, Object>> getFruitByClassId(Map<String, Object> res) {
		// TODO Auto-generated method stub
		return categoryMapper.getFruitByClassId(res);
	}

	@Override
	public List<Map<String, Object>> getClassNameList() {
		// TODO Auto-generated method stub
		return categoryMapper.getClassNameList();
	}

}
